<?php
namespace app\api\model;
use think\Model;

class PetsDiary extends Model {
    public function pets() {
        return $this->belongsTo('Pets', 'pets_id');
    }
    public function user() {
        return $this->belongsTo('User', 'uid');
    }
}
